package com.rui.study.commons.study.support.validate.annotation;




import com.rui.study.commons.study.support.validate.AuthValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = AuthValidator.class)
public @interface NotBothEmpty {

    String message() default "verifyCode或password至少填一个";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

}
